﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Host.Domain
{
    /// <summary>
    /// 传感器数据表
    /// </summary>
    public  class SensorData
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        public int SensorId { get; set; }
        /// <summary>
        /// 换热站外键
        /// </summary>
        public int StationId { get; set; }
        /// <summary>
        /// 设备外键
        /// </summary>
        public int DeviceId { get; set; }
        /// <summary>
        /// 数据采集的时间戳
        /// </summary>
        public DateTime Timestamp { get; set; }
        /// <summary>
        /// 温度值
        /// </summary>
        public decimal Temperature { get; set; }
        /// <summary>
        /// 压力值
        /// </summary>
        public decimal Pressure { get; set; }
        /// <summary>
        /// 流量值
        /// </summary>
        public decimal FlowRate { get; set; }
        /// <summary>
        /// 能耗值
        /// </summary>
        public decimal Consumption {  get; set; }
    }
}
